package com.example.homelicaisystem.entity;

import lombok.Data;

import javax.validation.constraints.NotBlank;
import java.util.Date;

@Data
public class IncomeDetail implements Detail {
    //数据库中的数据
    private Integer id;
    @NotBlank(message = "userId不能为空")
    private Integer userId;

    private Integer familyId;
    private Integer typeId;
    @NotBlank(message = "收入方式不能为空")
    private Integer modeId;
    @NotBlank(message = "收入金额不能为空")
    private Integer money;
    @NotBlank(message = "收入时间不能为空")
    private Date date;

    private Integer state;

    //查表
    private String userName;
    private String modeName;
    private String typeName;
    private Date startTime;
    private Date endTime;
    private String phone;
    private Integer cardId;
    private String cardName;


}
